
package com.monlyu.action.user;

import com.monlyu.action.PageAction;
import com.monlyu.bean.Pages;
import com.monlyu.bo.UserBo;
import com.monlyu.vo.User;

/********************************************************************************
 * <b>功能描述☞</b>查询用户的列表<br>
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>monlyu<br>
 * <b>文件路径☞</b>com.monlyu.action.user.ListUserAction.java<br>
 * <b>开发日期☞</b>2010-1-19 <br>
 * 
 * @author monlyu
 * @since JDK 5
 * @version 1.0.5
 ********************************************************************************/
public class ListUserAction extends PageAction {

    private UserBo userBo;
    private Pages<User> users;

    /**
     * @author monlyu
     * @since 2009-12-27
     */
    @Override
    public String execute() throws Exception{
        users = userBo.findAllUser(getDefPage(), true);
        return view("listUser.jsp");
    }

    public String disabled() throws Exception{
        users = userBo.findAllUser(getDefPage(), false);
        return view("listUser.jsp");
    }

    public Pages<User> getUsers(){
        return users;
    }

    public void setUsers(Pages<User> users){
        this.users = users;
    }

    public void setUserBo(UserBo userBo){
        this.userBo = userBo;
    }
}
